const mongoose=require("mongoose");

var OrderSchema=new mongoose.Schema({
	complain:String,
	merchant:{type:mongoose.Schema.Types.ObjectId,ref:"merchant"},
	client:{type:mongoose.Schema.Types.ObjectId, ref:"client"},
	createDate:Date,
	receiveDate:Date,
	confirmDate:Date,
	confirm:Number,
	status:Number,
	grade:Number,
	total:Number,
	orderItem:Array,
	res:Number
});

mongoose.model("order",OrderSchema);